package link

type Node struct {
	Next *Node
	Data int
}

func NewNode(data int) *Node {
	return &Node{Data: data}
}

type DoubleLinkedNode struct {
	Next *DoubleLinkedNode
	Prev *DoubleLinkedNode
	Data int
}

func NewDoubleLinkedNode(data int) *DoubleLinkedNode {
	return &DoubleLinkedNode{Data: data}
}
